package br.ufc.minijavaufc.ast;

import br.ufc.minijavaufc.visitor.TypeVisitor;
import br.ufc.minijavaufc.visitor.Visitor;

public class WhileStatement extends Statement {

	public Expression expression;
	public Statement statement;

	public WhileStatement(Expression expression, Statement statement) {
		super();
		this.expression = expression;
		this.statement = statement;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	@Override
	public Type accept(TypeVisitor visitor) {
		return visitor.visit(this);
	}

}
